import Vue from 'vue'
import Router from 'vue-router'
import DataCollectView from '@/views/DataCollectView.vue'
// import NodeDetailView from '@/views/NodeDetailView.vue'
import DiagramView from '@/views/DiagramView.vue'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/data-collect',
      name: 'DataCollect',
      component: DataCollectView
    },
    // {
    //   path: '/node-detail',
    //   name: 'NodeDetail',
    //   component: NodeDetailView
    // },
    {
      path: '/diagram',
      name: 'Diagram',
      component: DiagramView
    },
    {
      path: '*',
      redirect: '/diagram' // 默认跳转到 diagram
    }
  ]
})